package com.zlm.user.emp.dao;

import com.zlm.common.base.BaseDao;
import com.zlm.common.entity.EmpUserEducationDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: duyufu
 * @Date: 2019/5/14 16:51
 */
@Repository
public interface EmpUserEducationDao extends BaseDao<EmpUserEducationDO> {

    /**
     * 新增教育经历
     * @param empUserEducationDO
     */
    void insertUserEducation(EmpUserEducationDO empUserEducationDO);

    /**
     * 修改教育经历
     * @param empUserEducationDO
     */
    void updateUserEducation(EmpUserEducationDO empUserEducationDO);

    /**
     * 删除教育经历
     * @param empId
     * @param eid
     */
    void deleteUserEducation(@Param("empId") Integer empId,@Param("eid") Integer eid);

    /**
     * 查询教育经历
     * @param empId
     * @return
     */
    List<EmpUserEducationDO> queryUserEducation(@Param("empId") Integer empId);
}
